/*
C++ 函数复习
*/
#include <iostream>
using namespace std;

//定义一个函数，这个函数声明要再main之前，不然会报错
void welcome();

/// @brief 获取键盘输入的字符串
/// @return 
char getKeyChar();

/// @brief 打印键盘输入的字符串
/// @param keyChar 
void printKeyChar(char keyChar);

int main() {
    welcome();
    char keyChar = getKeyChar();
    printKeyChar(keyChar);
}

void welcome() {
    cout << "欢迎进入--" << endl;
}

char getKeyChar() {
    cout << "请输入键盘字符：" << endl;
    char response;
    cin >> response;
    return response;
}

void printKeyChar(char keyChar) {
    cout << keyChar << endl;
}